<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<title>Exported from Notepad++</title>
<style type="text/css">
span {
	font-family: 'Courier New';
	font-size: 10pt;
	color: #000000;
}
.sc0 {
}
.sc2 {
	font-family: 'Comic Sans MS';
	font-size: 8pt;
	color: #008000;
}
.sc5 {
	font-weight: bold;
	color: #0000FF;
}
.sc9 {
	font-weight: bold;
	color: #8080FF;
	background: #FFFFCC;
}
.sc10 {
	font-weight: bold;
	color: #000080;
}
.sc11 {
}
</style>
</head>
<body>
<div style="float: left; white-space: pre; line-height: 1; background: #FFFFFF; "><span class="sc5">def</span><span class="sc0"> </span><span class="sc9">method_name</span><span class="sc10">(</span><span class="sc11">x</span><span class="sc10">)</span><span class="sc0">
  </span><span class="sc2"># The body of the method goes here.</span><span class="sc0">
  </span><span class="sc2"># Usually, the method body runs to completion without exceptions</span><span class="sc0">
  </span><span class="sc2"># and returns to its caller normally.</span><span class="sc0">
</span><span class="sc5">rescue</span><span class="sc0"> 
  </span><span class="sc2"># Exception-handling code goes here.</span><span class="sc0">
  </span><span class="sc2"># If an exception is raised within the body of the method, or if</span><span class="sc0">
  </span><span class="sc2"># one of the methods it calls raises an exception, then control</span><span class="sc0">
  </span><span class="sc2"># jumps to this block.</span><span class="sc0">
</span><span class="sc5">else</span><span class="sc0">
  </span><span class="sc2"># If no exceptions occur in the body of the method</span><span class="sc0">
  </span><span class="sc2"># then the code in this clause is executed.</span><span class="sc0">
</span><span class="sc5">ensure</span><span class="sc0">
  </span><span class="sc2"># The code in this clause is executed no matter what happens in the</span><span class="sc0">
  </span><span class="sc2"># body of the method. It is run if the method runs to completion, if </span><span class="sc0">
  </span><span class="sc2"># it throws an exception, or if it executes a return statement.</span><span class="sc0">
</span><span class="sc5">end</span><span class="sc0">

</span></div></body>
</html>
